<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="EditFactory.aspx.cs" Inherits="Admin_EditFactory" Title="Untitled Page" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderAdmin" Runat="Server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>

<h3 id="title">Edit Factory Information</h3>
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" DataSourceID="ObjectDataSource1" GridLines="None">
        <MasterTableView AutoGenerateColumns="False" CellSpacing="-1" DataSourceID="ObjectDataSource1">
            <RowIndicatorColumn>
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <Columns>
            <telerik:GridTemplateColumn>
                <HeaderTemplate>
                    <asp:LinkButton Font-Underline="true" ID="btnInsert" CommandName="InitInsert" runat="server">New Record</asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:LinkButton Font-Underline="true" ID="btnEdit" CommandName="Edit" runat="server">Edit</asp:LinkButton>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="FactoryID" DataType="System.Int32" HeaderText="FactoryID" ReadOnly="true"
                    SortExpression="FactoryID" UniqueName="FactoryID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CompanyID" DataType="System.Int32" HeaderText="CompanyID"
                    SortExpression="CompanyID" UniqueName="CompanyID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FactoryName" HeaderText="FactoryName" SortExpression="FactoryName"
                    UniqueName="FactoryName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description"
                    UniqueName="Description">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="Entities.FactoryInfo" InsertMethod="Insert" SelectMethod="GetAll" TypeName="Bll.FactoryBll" UpdateMethod="Update"></asp:ObjectDataSource>

</asp:Content>

